<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  // async created() {
  //   const loading = this.$loading({
  //     lock: true,
  //     text: 'Loading',
  //     spinner: 'el-icon-loading',
  //     background: 'rgba(0, 0, 0, 0.7)'
  //   });
  //   // await this.$store.dispatch('general/getHeaders');
  //   await this.$store.dispatch('general/getList');
  //   // await this.$store.dispatch('importantCritical/getHeaders');
  //   await this.$store.dispatch('importantCritical/getList');
  //   // await this.$store.dispatch('accountPermission/getHeaders');
  //   await this.$store.dispatch('accountPermission/getList');
  //   // await this.$store.dispatch('logAudit/getHeaders');
  //   await this.$store.dispatch('logAudit/getList');
  //   loading.close();
  // }
}
</script>
